import request from '@/utils/request'
// 获取班级作业信息
export function getPageClassHomeWork(classId, data) {
	return request({
		'url': '/message/pageHomeWork/' + classId,
		'method': 'get',
		'params': data
	})
}

// 获取自己的信息
export function getMyMessage() {
	return request({
		'url': '/message/myMessage',
		'method': 'get'
	})
}
//删除信息
export function deleteMyMessage(msgIds) {
	return request({
		'url': '/message/' + msgIds,
		'method': 'delete'
	})
}

//置顶和取消置顶
export function updateTopping(msgId, level) {
	return request({
		'url': '/message/' + msgId + "/" + level,
		'method': 'put'
	})
}
